import request from '@/utils/request'
export default{
  //获取我的课程
  getmycourse(userid,query){
    return request({
      url: `/eduservice/uicourse/uiusercentergetmycourse/${userid}/${query}`,
      method: 'get'
    })
  },
  //退课
  outthecourse(userid,courseid){
    return request({
      url: `/eduservice/uicourse/deletemycourse/${userid}/${courseid}`,
      method: 'delete'
    })
  },
  //取消收藏
  outtheecc(userid,courseid){
    return request({
      url: `/eduservice/uicourse/deleteecc/${userid}/${courseid}`,
      method: 'delete'
    })
  },
  //获取我收藏的课程
  getecc(userid,query){
    return request({
      url: `/eduservice/uicourse/uiusercentergetecc/${userid}/${query}`,
      method: 'get'
    })
  },
  //获取我的订单
  getorderinfobyuser(userid,orderstatus){
    return request({
      url: `/alipayservice/queryOrderInfo/${userid}/${orderstatus}`,
      method: 'get'
    })
  },
  //前台逻辑删除订单记录
  uilogicdeleteorder(orderno){
    return request({
      url: `/alipayservice/logicdeleteorder/${orderno}`,
      method: 'get'
    })
  }


}
